Page({
  data: {
    text: "Page location",
    latitude: '',//纬度 
    longitude: '',//经度 
    speed: 0,//速度 
  },

  /**
     * 监听定位到当前位置
     */
  openMap: function () {
    wx.getLocation({
      type: 'gcj02',
      success: function (res) {
        wx.openLocation({
          latitude: 28.743246052999748,
          longitude: 115.87671767726899,
          scale: 28,
          name: '江西理工大学（南昌校区）',
          address: '双港东大街1180号',
        })
      }

    })
  },
  openPhone: function () {
    wx.makePhoneCall({
      phoneNumber: '0791-3882886',
      success: function () {
        console.log("拨打电话成功！")
      }
    })
  }
})